package com.simtop.service.impl;

import com.simtop.dao.LogInfoMapper;
import com.simtop.pojo.LogInfo;
import com.simtop.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LogMessageServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-05-21 14:50
 **/
@Service
public class LogInfoServiceImpl implements LogInfoService {

    @Autowired
    private LogInfoMapper logInfoMapper;


    @Override
    public boolean insertLog(LogInfo log) {
        return logInfoMapper.insertLog(log);
    }

    @Override
    public List<LogInfo> getAllLogInfo(LogInfo logInfo) {
        return logInfoMapper.getAllLogInfo(logInfo);
    }
}
